home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Science⁄Math
/
VideoToolbox
/
Demos
/
TestTranslateLinefeeds.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-09-20
|
285 b
|
17 lines
|
[
TEXT/KAHL
]
#include <QuickDraw.h>
//#include <cmex.h>
#include <TranslateLinefeeds.h>
void main(void)
{
int i;
putc('a',stdout);
putchar('b');
printf("Enter two characters, please:\n");
i=getc(stdin);
i=getchar();
ungetc(i,stdin);
i=getchar();
printf("Hello world, char is %c\n",i);
}